package com.ytjj.qmyx.mall.utils;

import org.apache.commons.lang.StringUtils;

public class PathUtils {

    /**
     * 替换路径
     * @param url
     * @return
     */
    public static String replaceUrl(String url){

        String oldPath = "/pages/activity";
        if(StringUtils.isNotBlank(url) && url.startsWith(oldPath)){
            url = url.replace(oldPath,"/packageB/pages/activity");
        }

        return url;
    }

}
